package com.coman404.mvc.conf;

import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.FullHttpResponse;
import sun.dc.pr.PRError;

import java.io.IOException;

/**
 * @author NotFound404 at 2024/6/11
 * code code always code
 */
public class ControllerMappingHolder {

    private String basePath;

    private String controllerName;

    private String path;

    private String methodName;

    private String methodType;

    private Handler handler;


    public static interface Handler{
        FullHttpResponse handle(FullHttpRequest request, FullHttpResponse response) throws IOException;
    }

    public String getBasePath() {
        return basePath;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }

    public String getControllerName() {
        return controllerName;
    }

    public void setControllerName(String controllerName) {
        this.controllerName = controllerName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodType() {
        return methodType;
    }

    public void setMethodType(String methodType) {
        this.methodType = methodType;
    }

    public Handler getHandler() {
        return handler;
    }

    public void setHandler(Handler handler) {
        this.handler = handler;
    }
}
